/*
 * Agence.cpp
 *
 *  Created on: 23 mars 2012
 *      Author: root
 */

#include "Agence.h"
#include <string>
#include "Vehicule.h"
#include "VehiculeUtilitaire.h"
#include "VehiculeTouristique.h"
#include "Client.h"
#include "Reservation.h"
#include "RendreVehicule.h"
#include "Parking.h"
#include<fstream>
#include<string>
#include<iostream>

//les constructeurs:

Agence::Agence()
{
	ClientFileName="Fichier_Client.txt";
}

Agence::Agence(long NumAgence, long Tel, long IdentifiantAgent,string NomAgence,string AdresseAgence,string NomAgent,string Login,string Password)
{
	this->NumAgence=NumAgence;
	this->Tel=Tel;
	this->IdentifiantAgent=IdentifiantAgent;
	this->NomAgence=NomAgence;
	this->AdresseAgence=AdresseAgence;
	this->NomAgent=NomAgent;
	this->Login=Login;
	this->Password=Password;
	this->ClientFileName="Fichier_Client.txt";
	this->VehiculeFileName="Fichier_Vehicule.txt";
	this->RendreVehiculeFileName="Fichier_Rendre_Vehicule.txt";
	this->ReserverVehiculeFileName="Fichier_Reserver_Vehicule.txt";
	this->AgenceFileName="Agence_Fichier.txt";
	this->ParkingFileName="Parking_Fichier.txt";
	this->FileNameTemp="temp.txt";
	this->Vehicule_utilitaireFileName="Vehicule_Utilitaire.txt";
	this->Vehicule_touristiqueFileName="Vehicule_touristique.txt";
}

Agence::~Agence() {}

//les getteurs et les setteurs:

ofstream& operator<< (ofstream& out , const Agence& A)
{
out<<A.getAdresseAgence()<<A.getIdentifiantAgent()<<A.getLogin()<<A.getNomAgence()<<A.getNomAgent()<<A.getNumAgence()<<A.getPassword()<<A.getTel();
return out;
}

long Agence::getNumAgence()const
{
	return this->NumAgence;
}

void Agence::setNumAgence(long NumAgence)
{
	this->NumAgence=NumAgence;
}

long Agence::getTel()const
{
	return this->Tel;
}

void Agence::setTel(long Tel)
{
	this->Tel=Tel;
}

long Agence::getIdentifiantAgent()const
{
	return this->IdentifiantAgent;
}

void Agence::setIdentifiantAgent(long IdentifiantAgent)
{
	this->IdentifiantAgent=IdentifiantAgent;
}
string Agence::getNomAgence()const
{
	return this->NomAgence;
}

void Agence::setNomAgence(string NomAgence)
{
	this->NomAgence=NomAgence;
}

string Agence::getNomAgent()const
{
	return this->NomAgent;
}

void Agence::setNomAgent(string NomAgent)
{
	this->NomAgent=NomAgent;
}

string Agence::getAdresseAgence()const
{
	return this->AdresseAgence;
}
void Agence::setAdresseAgence(string AdresseAgence)
{
	this->AdresseAgence=AdresseAgence;
}

string Agence::getLogin()const
{
	return this->Login;
}
void Agence::setLogin(string Login)
{
	this->Login=Login;
}

string Agence::getPassword()const
{
	return this ->Password;
}
void Agence::setPassword(string)
{
	this->Password=Password;
}
